package com.lushixiang.enums;

public enum CommonRespEnum {

    WELL_DONE("0000","一切正常"),
    // 系统异常 9999
    UNKONW_SYSTEM_ERROR("9999","未知系统异常"),
    // 邮箱相关功能异常 9xxx
    EMAIL_IS_EMPTY("9900","邮箱地址为空"),
    EMAIL_SENT_ERR("9901","邮件发送异常"),
    CHECK_CODE_TIMEOUT("9902","验证码已过期"),
    EMAIL_IS_INVAILD("9903","邮箱已被注册"),
    EMAIL_IS_VAILD("9904","邮箱尚未注册"),
    EMAIL_CHECK_FAIL("9905","邮箱验证码错误"),
    PASSWORD_IS_EMPTY("9006","密码为空"),

    USER_SIGN_FAIL("4001","用户登录失败"),

    // 用户权限控制 3xxx
    REQUEST_WITHOUT_SIGN("3001","/signIn"),
    ILLEGAL_IMPROVE_POWER("3002","非法越权"),

    // 上传文件相关异常 6xxx
    UPLOAD_SUCCESS("6000","传输成功"),
    UPLOAD_ERROR("6001","上传文件异常"),
   ;



    CommonRespEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    String code;
    String msg;
}
